package com.yowasa.xiuxian.engine.hone.special;

import com.yowasa.xiuxian.annoations.SE;
import com.yowasa.xiuxian.engine.hone.SpecialInterface;
import com.yowasa.xiuxian.entity.bo.user.UserBO;
import com.yowasa.xiuxian.entity.enums.ElementEnum;
import com.yowasa.xiuxian.entity.enums.StageEnum;
import com.yowasa.xiuxian.exception.HandlerException;

@SE(name = "太玄妙法")
public class TaiXuanMiaoFa implements SpecialInterface {
    @Override
    public ElementEnum getElement() {
        return null;
    }

    @Override
    public void limit(UserBO user) {
        if (user.getUserAttr().getUnd()>30) {
            throw new HandlerException("学习/使用太玄妙法必须悟性低于30");
        }
    }

    @Override
    public String limitDesc() {
        return "悟性低于30";
    }

    @Override
    public String desc() {
        return "无法请教他人，但是学习战技与神通不受学习条件限制";
    }

}